package org.evil.deus.rss.provider;

import android.content.ContentResolver;
import android.net.Uri;
import android.provider.BaseColumns;

public class RSS {
	private static final Uri BASE_URI = new Uri.Builder()
											  .authority(Provider.AUTHORITY)
											  .scheme(ContentResolver.SCHEME_CONTENT)
											  .build();
	
	public interface Channel extends BaseColumns {
		public static final String TABLE = "channels";
		public static final Uri CONTENT_URI = Uri.withAppendedPath(BASE_URI, TABLE);
		
		public static final String URL = "url";
		public static final String TITLE = "title";
		public static final String LINK	 		= "link";
		public static final String DESCRIPTION = "description";
		public static final String IMAGE = "image";
		public static final String LANGUAGE = "language";
		
		/*default*/ static final String DEFAULT_ORDER = _ID;
	}
	
	public interface Item extends BaseColumns {
		public static final String TABLE = "items";
		public static final Uri CONTENT_URI = Uri.withAppendedPath(BASE_URI, TABLE);
		
		public static final String TITLE 		= "title";
		public static final String LINK	 		= "link";
		public static final String CATEGORY 	= "category";
		public static final String AUTHOR		= "author";
		public static final String DATE			= "pubDate";
		public static final String DESCRIPTION 	= "description";
		public static final String STATE		= "state";
		public static final String CHANNEL 		= "channel";
		
		/*default*/ static final String DEFAULT_ORDER = DATE + " desc";
	}
}
